
<%@page import="java.text.DateFormat"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page import="java.util.ArrayList"%>
<%@page import="java.util.Iterator"%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html >

<head>
          <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
          <meta name="author" content="MWH Team 2" />

       <script type="text/javascript" src="fichier/jquery-1.10.2.js"></script>
      <%/* <script type="text/javascript" src="fichier/init.js"></script> */ %>
       <script type="text/javascript" src="fichier/calendrier.js"></script>
       <link rel="stylesheet" media="screen" type="text/css" title="Design" href="fichier/design.css" />    
          <link href="./fichier/bootstrap.min.css" rel="stylesheet">
          <link href="./fichier/Site.css" rel="stylesheet">
     
         <title>Login</title>
        
</head>

<body>



        <h1  align="center">'</h1>
    <h2 class="button green center" align="center">Authentification</h2>
    <br>

 </br>
  <div align="center">
    <form name="login" method="post" action="controle">
  
  <table id="testTable1" width="30%">
 
	<tr>
		<td>User Name</td>
		<td><input type="text" name="login" id="Inputlogin" /></td>
	</tr>
	  <tr><td></br></td></tr>
		<tr>
		<td>Password</td>
		<td><input type="password" name="pass" id="Inputpass"/></td>
	</tr>
     
    <tr><td></br></td></tr>
  
       
		<tr>
	 <td></td>
 	 <td> <input width="48" height="48"  type="submit" name="actionConnecter" id="Connecter" value="         Connecter         "/>&nbsp;&nbsp;&nbsp;&nbsp;
 	 
	
	
	</tr>
</table>
</form>
   
</div>
	
 


				  <script>
				  //Le script Ajaaaaaaaaaaaaaaaaaax
	       $(document).ready(function() { 

	    	   var selectionCount = 1;

	           $('#Connecter').on("click", function () {
	            	//window.alert('Succesfully Updated');
		    	    //window.location.href='Incident.jsp';

	                $.ajax({
	                	 type: "POST",
		                    url: "controle?action=Connecter",
		                    data: {
	                    	login: $("#Inputlogin").val(),
	                    	pass: $("#Inputpass").val(),
	          
	                    },
	                   
	                });
	            });
	            
	           
                   //Vider les Inputs
		            $('#Vider').on("click", function () {


		            		 $("#Inputlogin").val("");
		              	     $("#Inputpass").val("");
		                   
		            });
	            
	            //Affichage des valeurs dans les Inputs 
	            
	    
							     
				            });
				  
				  
				  
				        </script>

 
 
<script type="text/javascript" src="fichier/bootstrap.js"></script>
</body>
</html>

